class VoiceRecordModel {
  final String id;
  final String? deviceId;
  final String? voiceUrl;
  final String? content;
  final String? createTime;
  final String? voiceType;

  VoiceRecordModel({
    required this.id,
    this.deviceId,
    this.voiceUrl,
    this.content,
    this.createTime,
    this.voiceType,
  });

  factory VoiceRecordModel.fromJson(Map<String, dynamic> json) {
    return VoiceRecordModel(
      id: json['id'].toString(),
      deviceId: json['deviceId']?.toString(),
      voiceUrl: json['voiceUrl'],
      content: json['content'],
      createTime: json['createTime'],
      voiceType: json['voiceType'],
    );
  }
} 